<template>
  <div class="patientDetail">
    <el-card class="top_nav" :shadow="shadowShow">
      <div class="top_nav_inner">
        <div class="top_nav_left">
          <div class="name">
            <img src="@/assets/img/patient_avata.png" alt="" />
            <span>{{ $t('patient.huanzhe40') }}</span>
            <img src="@/assets/img/patient_man.png" alt="" />
            <img src="@/assets/img/patient_edit.png" alt="" />
          </div>
          <div class="info">
            <span>{{ $t('patient.huanzhe41') }}：1388888888</span>
            <span>{{ $t('patient.huanzhe42') }}：23岁</span>
            <span>{{ $t('patient.huanzhe43') }}：诊所1</span>
            <span>{{ $t('patient.huanzhe44') }}：{{ $t('add.add159') }}</span>
            <el-button :size="optionButtonSize" type="text" @click="speradHandle"
              >{{ $t('patient.huanzhe45') }}》</el-button
            >
          </div>
        </div>
        <div class="top_nav_right">
          <el-button :size="optionButtonSize" type="text" @click="backHandle">{{
            $t('patient.huanzhe46')
          }}</el-button>
        </div>
      </div>
      <div v-if="isSperad" class="top_nav_bottom">
        <!-- 患者详情 -->
        <div class="info">
          <span>{{ $t('patient.huanzhe47') }}：周</span>
          <span>{{ $t('patient.huanzhe48') }}：2022-12-05 10:03:06</span>
          <span>{{ $t('patient.huanzhe49') }}：2022-12-05 10:03:06</span>
        </div>
        <div class="info">
          <span>{{ $t('patient.huanzhe50') }}：shjshjsjh</span>
        </div>
      </div>
    </el-card>

    <el-card class="detail_bottom" :shadow="shadowShow">
      <el-tabs v-model="activeName" class="tabs" @tab-click="tabsHadle">
        <el-tab-pane :label="$t('patient.huanzhe51')" name="first">
          <template>
            <div class="detail_scan" style="height: 500px"></div>
          </template>
        </el-tab-pane>
        <el-tab-pane :label="$t('patient.huanzhe52')" name="second">
          <template>
            <div class="detail_scan"></div>
          </template>
        </el-tab-pane>
        <el-tab-pane :label="$t('patient.huanzhe53')" name="third">
          <template>
            <div class="detail_scan"></div>
          </template>
        </el-tab-pane>
      </el-tabs>
      <div class="refresh">
        <img src="@/assets/img/order_ refresh.png" alt="" />
        <span>{{ $t('patient.huanzhe54') }}</span>
      </div>
      <div class="download">
        <img src="@/assets/img/home/nav_help.png" alt="" />
      </div>
    </el-card>
  </div>
</template>

<script>
export default {
  name: 'BLZMasterDetail',

  data() {
    return {
      isSperad: false,
      activeName: 'first',
    };
  },

  mounted() {},

  methods: {
    // 返回
    backHandle() {
      this.$router.back();
    },
    // tab切换
    tabsHadle() {},
    // 患者详情
    detailHandle() {},
    // 患者详情展开
    speradHandle() {
      this.isSperad = !this.isSperad;
    },
  },
};
</script>

<style lang="scss" scoped>
.top_nav {
  // height: 77px;
  box-sizing: border-box;

  .top_nav_inner {
    padding-top: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    .top_nav_left {
      .name {
        display: flex;
        align-items: center;

        img {
          margin-right: 6px;
          width: 20px;
          height: 20px;
        }

        img:nth-of-type(2) {
          width: 16px;
          height: 16px;
        }

        img:nth-of-type(3) {
          width: 16px;
          height: 16px;
        }

        span {
          margin-right: 6px;
          font-size: 16px;
          font-weight: 500;
          line-height: 20px;
          color: #333333;
        }
      }

      .info {
        margin-top: 7px;

        span {
          font-size: 14px;
          font-weight: 400;
          color: #666666;
          margin-right: 20px;
        }
      }
    }

    // .top_nav_right{

    // }
  }

  .top_nav_bottom {
    span {
      font-size: 14px;
      font-weight: 400;
      color: #666666;
      margin-right: 20px;
    }

    .info {
      margin-top: 7px;
    }
  }
}

.detail_bottom {
  margin-top: 20px;
  position: relative;

  .refresh {
    position: absolute;
    cursor: pointer;
    top: 50%;
    right: 20px;
    top: 30px;
    display: flex;
    align-items: center;

    img {
      margin-right: 5px;
      width: 18px;
      height: 14px;
    }
  }

  .detail_scan {
    height: 500px;
  }

  .download {
    position: absolute;
    top: 80px;
    right: 30px;
    cursor: pointer;

    img {
      width: 22px;
      height: 22px;
    }
  }
}
</style>
